// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SalesFlatQuoteShippingRate generated by hbm2java
 */
@Entity
@Table(name = "sales_flat_quote_shipping_rate", catalog = "magento")
public class SalesFlatQuoteShippingRate implements java.io.Serializable {

	private Integer rateId;
	private SalesFlatQuoteAddress salesFlatQuoteAddress;
	private Date createdAt;
	private Date updatedAt;
	private String carrier;
	private String carrierTitle;
	private String code;
	private String method;
	private String methodDescription;
	private BigDecimal price;
	private String methodTitle;
	private String errorMessage;

	public SalesFlatQuoteShippingRate() {
	}

	public SalesFlatQuoteShippingRate(
			SalesFlatQuoteAddress salesFlatQuoteAddress, Date createdAt,
			Date updatedAt, BigDecimal price) {
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.price = price;
	}

	public SalesFlatQuoteShippingRate(
			SalesFlatQuoteAddress salesFlatQuoteAddress, Date createdAt,
			Date updatedAt, String carrier, String carrierTitle, String code,
			String method, String methodDescription, BigDecimal price,
			String methodTitle, String errorMessage) {
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.carrier = carrier;
		this.carrierTitle = carrierTitle;
		this.code = code;
		this.method = method;
		this.methodDescription = methodDescription;
		this.price = price;
		this.methodTitle = methodTitle;
		this.errorMessage = errorMessage;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "rate_id", unique = true, nullable = false)
	public Integer getRateId() {
		return this.rateId;
	}

	public void setRateId(Integer rateId) {
		this.rateId = rateId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "address_id", nullable = false)
	public SalesFlatQuoteAddress getSalesFlatQuoteAddress() {
		return this.salesFlatQuoteAddress;
	}

	public void setSalesFlatQuoteAddress(
			SalesFlatQuoteAddress salesFlatQuoteAddress) {
		this.salesFlatQuoteAddress = salesFlatQuoteAddress;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", nullable = false, length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", nullable = false, length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	@Column(name = "carrier")
	public String getCarrier() {
		return this.carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	@Column(name = "carrier_title")
	public String getCarrierTitle() {
		return this.carrierTitle;
	}

	public void setCarrierTitle(String carrierTitle) {
		this.carrierTitle = carrierTitle;
	}

	@Column(name = "code")
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "method")
	public String getMethod() {
		return this.method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	@Column(name = "method_description", length = 65535)
	public String getMethodDescription() {
		return this.methodDescription;
	}

	public void setMethodDescription(String methodDescription) {
		this.methodDescription = methodDescription;
	}

	@Column(name = "price", nullable = false, precision = 12, scale = 4)
	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name = "method_title", length = 65535)
	public String getMethodTitle() {
		return this.methodTitle;
	}

	public void setMethodTitle(String methodTitle) {
		this.methodTitle = methodTitle;
	}

	@Column(name = "error_message", length = 65535)
	public String getErrorMessage() {
		return this.errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
